﻿<%@ Page language="c#" Codebehind="ManageVideos.aspx.cs" AutoEventWireup="false" Inherits="VideoWorld.Management.ManageVideoInfo" %>
<%@ Register TagPrefix="uc1" TagName="VideoTypeList" Src="../controls/VideoTypeList.ascx" %>
<HTML>
	<HEAD>
		<title>center</title>
		<style>BODY { FONT-WEIGHT: normal; FONT-SIZE: 12px; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal }
	TD { FONT-WEIGHT: normal; FONT-SIZE: 12px; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal }
	</style>
	</HEAD>
	<body MS_POSITIONING="FlowLayout">
		<form id="Form1" method="post" runat="server">
			<asp:panel id="PanelVideoInfo" runat="server">
				<FONT face="宋体">
					<asp:Panel id="PanelVideoInfoNavi" runat="server">
						<TABLE id="Table1" cellSpacing="1" cellPadding="5" width="100%" border="1">
							<TR>
								<TD align="center">
									<asp:Button id="ButtonShowVideoInfo" runat="server" Text="添加新视频" CausesValidation="False"></asp:Button>
									<asp:Button id="ButtonShowSearch" runat="server" Text="查找" CausesValidation="False"></asp:Button></TD>
							</TR>
						</TABLE>
					</asp:Panel></FONT>
				<asp:Panel id="PanelVideoInfoContent" runat="server">
					<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
						<TR>
							<TD width="115"><FONT face="宋体">电影名</FONT></TD>
							<TD width="250">
								<asp:TextBox id="TextBoxName" runat="server" EnableViewState="False"></asp:TextBox>
								<asp:RequiredFieldValidator id="RequiredFieldValidatorName" runat="server" ErrorMessage="请填写电影名" ControlToValidate="TextBoxName"></asp:RequiredFieldValidator></TD>
							<TD width="62">&nbsp;<FONT face="宋体">视听文件</FONT></TD>
							<TD><FONT face="宋体"><INPUT id="FileTryListen" type="file" size="24" runat="server"></FONT></TD>
						</TR>
						<TR>
							<TD width="115">文件格式</TD>
							<TD width="250">
								<asp:TextBox id="TextBoxFileType" runat="server" EnableViewState="False"></asp:TextBox></TD>
							<TD width="62"><SPAN class="ziti002"><FONT face="宋体">导演</FONT></SPAN></TD>
							<TD>
								<asp:TextBox id="TextBoxAuthor" runat="server" EnableViewState="False"></asp:TextBox>&nbsp;</TD>
						</TR>
						<TR>
							<TD width="115">演&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;员</TD>
							<TD width="250">
								<asp:TextBox id="TextBoxPerformer" runat="server" EnableViewState="False"></asp:TextBox></TD>
							<TD width="62"><SPAN class="ziti002">出品厂家</SPAN></TD>
							<TD>
								<asp:TextBox id="TextBoxMaker" runat="server" EnableViewState="False"></asp:TextBox></TD>
						</TR>
						<TR>
							<TD width="115" height="108">语&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 言</TD>
							<TD width="250" height="108">
								<asp:TextBox id="TextBoxLanguage" runat="server" EnableViewState="False"></asp:TextBox></TD>
							<TD width="62" rowSpan="2"><FONT face="宋体">图片名称</FONT></TD>
							<TD rowSpan="2">
								<asp:Image id="Image" runat="server" Width="100px"></asp:Image><INPUT id="hiddenImage" type="hidden" name="hiddenImage" runat="server"><FONT face="宋体"><BR>
								</FONT><INPUT id="FileImage" type="file" name="File1" runat="server"><INPUT onclick="if(Form1.FileImage.value.length>0){Image.width=300;Image.src=Form1.FileImage.value}"
									type="button" value="预览"></TD>
						</TR>
						<TR>
							<TD width="115">推荐指数</TD>
							<TD width="250">
								<asp:TextBox id="textBoxScore" runat="server" Width="32px"></asp:TextBox><FONT face="宋体">数字(1-10)</FONT></TD>
						</TR>
						<TR>
							<TD width="115" height="11">电影简介</TD>
							<TD width="250" height="11">&nbsp;
							</TD>
							<TD width="62" height="11">&nbsp;<FONT face="宋体">所属类别</FONT></TD>
							<TD height="11">&nbsp;
								<asp:DropDownList id="dropDownListVideoType" runat="server"></asp:DropDownList></TD>
						</TR>
						<TR>
							<TD colSpan="4">
								<asp:TextBox id="TextBoxSummary" runat="server" EnableViewState="False" Width="368px" TextMode="MultiLine"
									Height="96px"></asp:TextBox></TD>
						</TR>
						<TR>
							<TD colSpan="4">
								<asp:Button id="ButtonAddVideo" runat="server" Text="添加"></asp:Button><INPUT id="hiddenID" type="hidden" name="hiddenID" runat="server"></TD>
						</TR>
						<TR>
							<TD align="center" colSpan="4">&nbsp;
								<asp:Label id="LabelMessage" runat="server" ForeColor="Red"></asp:Label></TD>
						</TR>
					</TABLE>
				</asp:Panel>
				<asp:Panel id="PanelSearch" runat="server" Visible="False">
					<FONT face="宋体">影片名称：&nbsp;
						<asp:TextBox id="TextBoxSearchName" runat="server" Width="248px"></asp:TextBox>
						<asp:Button id="ButtonSearch" runat="server" Text="查找"></asp:Button>
						<asp:DataGrid id="dataGridNewsList" runat="server" Width="100%" Visible="False" CellPadding="4"
							BackColor="White" BorderWidth="1px" BorderStyle="None" BorderColor="#3366CC" AutoGenerateColumns="False"
							PageSize="20" AllowPaging="True">
							<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
							<ItemStyle ForeColor="#003399" BackColor="White"></ItemStyle>
							<HeaderStyle Font-Bold="True" ForeColor="#CCCCFF" BackColor="#003399"></HeaderStyle>
							<FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
							<Columns>
								<asp:HyperLinkColumn Text="标题" Target="_blank" DataNavigateUrlField="ID" DataNavigateUrlFormatString="ManageVideos.aspx?Action=Modify&amp;ID={0}"
									DataTextField="Name" HeaderText="标题">
									<HeaderStyle Width="180px"></HeaderStyle>
								</asp:HyperLinkColumn>
								<asp:TemplateColumn HeaderText="编辑推荐">
									<HeaderStyle Width="60px"></HeaderStyle>
									<ItemTemplate>
										<asp:Label id=LabelIsRecommend runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.IsRecommend") %>'>
										</asp:Label>
									</ItemTemplate>
									<EditItemTemplate>
										<asp:CheckBox id=CheckBoxIsRecommend runat="server" Checked='<%# Convert.ToBoolean(DataBinder.Eval(Container, "DataItem.IsRecommend")) %>'>
										</asp:CheckBox>
									</EditItemTemplate>
								</asp:TemplateColumn>
								<asp:HyperLinkColumn Text="查看" Target="_blank" DataNavigateUrlField="ID" DataNavigateUrlFormatString="ManageVideos.aspx?Action=Modify&amp;ID={0}"
									HeaderText="查看详细">
									<HeaderStyle Width="60px"></HeaderStyle>
								</asp:HyperLinkColumn>
								<asp:EditCommandColumn ButtonType="PushButton" UpdateText="更新" HeaderText="修改信息" CancelText="取消" EditText="编辑">
									<HeaderStyle Width="60px"></HeaderStyle>
								</asp:EditCommandColumn>
								<asp:ButtonColumn Text="删除" ButtonType="PushButton" HeaderText="删除" CommandName="Delete">
									<HeaderStyle Width="60px"></HeaderStyle>
								</asp:ButtonColumn>
							</Columns>
							<PagerStyle HorizontalAlign="Left" ForeColor="#003399" Position="TopAndBottom" BackColor="#99CCCC"
								Mode="NumericPages"></PagerStyle>
						</asp:DataGrid></FONT></asp:Panel>
			</asp:panel></form>
	</body>
</HTML>
